package chapter02;

public class Training01 {
    public static void main(String[] args) {
        int k,n,s,i=100;
        do{
            s=0;
            n=i;
            while(n!=0){
                k=n%10;
                n=n/10;
                s=s+k*k*k;
            }
            if(i==s)
                System.out.print(s+"  ");
            i++;
        }while (i<999);
    }
}
